  /**
   * Generate time : 2012-03-06 13:57:19
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cm.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCMMaterialBasicInfoReport 
 *  
 */
public class ZMCMMaterialBasicInfoReport extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdMaterialCode = " ";		/* 物资编码*/
	private String fdMaterialTypeId = " ";		/* 材料类别ID*/
	private String fdMaterialName = " ";		/* 物资名称*/
	private String fdMaterialType = " ";		/* 物资类型*/
	private String fdSpecModel = " ";		/* 规格型号*/
	private String fdMetric = " ";		/* 计量单位*/
	private String fdMaterialInnerCode = " "; /* 物资内码 */
	private Long fdSerialnumber = new Long(0); /* 顺序号 */

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMaterialCode");
	eiColumn.setFieldLength(40);	
	eiColumn.setDescName("物资编码");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMaterialTypeId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("材料类别ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMaterialName");
	eiColumn.setFieldLength(80);	
	eiColumn.setDescName("物资名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMaterialType");
	eiColumn.setFieldLength(80);	
	eiColumn.setDescName("物资类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSpecModel");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("规格型号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMetric");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("计量单位");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMaterialInnerCode");
	eiColumn.setFieldLength(30);
	eiColumn.setDescName("物资内码");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSerialnumber");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName("顺序号");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCMMaterialBasicInfoReport() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdMaterialCode - 物资编码
	 * @return the fdMaterialCode
	 */
	public String getFdMaterialCode() {
		return this.fdMaterialCode;
	}
	
	/**
	 * set the fdMaterialCode - 物资编码
	 */
	public void setFdMaterialCode(String fdMaterialCode) {
		this.fdMaterialCode = fdMaterialCode;
	}
	
	/**
	 * get the fdMaterialTypeId - 材料类别ID
	 * @return the fdMaterialTypeId
	 */
	public String getFdMaterialTypeId() {
		return this.fdMaterialTypeId;
	}
	
	/**
	 * set the fdMaterialTypeId - 材料类别ID
	 */
	public void setFdMaterialTypeId(String fdMaterialTypeId) {
		this.fdMaterialTypeId = fdMaterialTypeId;
	}
	
	/**
	 * get the fdMaterialName - 物资名称
	 * @return the fdMaterialName
	 */
	public String getFdMaterialName() {
		return this.fdMaterialName;
	}
	
	/**
	 * set the fdMaterialName - 物资名称
	 */
	public void setFdMaterialName(String fdMaterialName) {
		this.fdMaterialName = fdMaterialName;
	}
	
	/**
	 * get the fdMaterialType - 物资类型
	 * @return the fdMaterialType
	 */
	public String getFdMaterialType() {
		return this.fdMaterialType;
	}
	
	/**
	 * set the fdMaterialType - 物资类型
	 */
	public void setFdMaterialType(String fdMaterialType) {
		this.fdMaterialType = fdMaterialType;
	}
	
	/**
	 * get the fdSpecModel - 规格型号
	 * @return the fdSpecModel
	 */
	public String getFdSpecModel() {
		return this.fdSpecModel;
	}
	
	/**
	 * set the fdSpecModel - 规格型号
	 */
	public void setFdSpecModel(String fdSpecModel) {
		this.fdSpecModel = fdSpecModel;
	}
	
	/**
	 * get the fdMetric - 计量单位
	 * @return the fdMetric
	 */
	public String getFdMetric() {
		return this.fdMetric;
	}
	
	/**
	 * set the fdMetric - 计量单位
	 */
	public void setFdMetric(String fdMetric) {
		this.fdMetric = fdMetric;
	}
	
	/**
	 * get the fdMaterialInnerCode - 物资内码
	 * 
	 * @return the fdMaterialInnerCode
	 */
	public String getFdMaterialInnerCode() {
		return this.fdMaterialInnerCode;
	}

	/**
	 * set the fdMaterialInnerCode - 物资内码
	 */
	public void setFdMaterialInnerCode(String fdMaterialInnerCode) {
		this.fdMaterialInnerCode = fdMaterialInnerCode;
	}
	
	/**
	 * get the fdSerialnumber - 顺序号
	 * @return the fdSerialnumber
	 */
	public Long getFdSerialnumber() {
		return this.fdSerialnumber;
	}
	
	/**
	 * set the fdSerialnumber - 顺序号
	 */
	public void setFdSerialnumber(Long fdSerialnumber) {
		this.fdSerialnumber = fdSerialnumber;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdMaterialCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialCode")), fdMaterialCode));
		setFdMaterialTypeId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialTypeId")), fdMaterialTypeId));
		setFdMaterialName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialName")), fdMaterialName));
		setFdMaterialType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialType")), fdMaterialType));
		setFdSpecModel(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSpecModel")), fdSpecModel));
		setFdMetric(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMetric")), fdMetric));
		setFdMaterialInnerCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialInnerCode")), fdMaterialInnerCode));
		setFdSerialnumber(NumberUtils.toLong(StringUtils.toString(map.get("fdSerialnumber")), fdSerialnumber));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdMaterialCode",StringUtils.toString(fdMaterialCode, eiMetadata.getMeta("fdMaterialCode")));	
			map.put("fdMaterialTypeId",StringUtils.toString(fdMaterialTypeId, eiMetadata.getMeta("fdMaterialTypeId")));	
			map.put("fdMaterialName",StringUtils.toString(fdMaterialName, eiMetadata.getMeta("fdMaterialName")));	
			map.put("fdMaterialType",StringUtils.toString(fdMaterialType, eiMetadata.getMeta("fdMaterialType")));	
			map.put("fdSpecModel",StringUtils.toString(fdSpecModel, eiMetadata.getMeta("fdSpecModel")));	
			map.put("fdMetric",StringUtils.toString(fdMetric, eiMetadata.getMeta("fdMetric")));	
			map.put("fdMaterialInnerCode", StringUtils.toString(fdMaterialInnerCode, eiMetadata.getMeta("fdMaterialInnerCode")));
			map.put("fdSerialnumber",StringUtils.toString(fdSerialnumber, eiMetadata.getMeta("fdSerialnumber")));	
		return map;
	
	}
}